package com.wfe.mapping.client;

import java.io.Serializable;
import java.util.Date;

/**
 * The persistent class for the WF_PROJECT_TASKS database table.
 * 
 * @author BEA Workshop
 */
public class WfProjectTask implements Serializable
{
	// default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;
	private Long recid;
	private java.util.Date creationTime;
	private Date endTime;
	private Long groupId;
	private Date startTime;
	private Long priority;
	private Long userId;
	private WfPlanTask wfPlanTask;
	private WfProject wfProject;
	private WfProjectTaskStatus wfProjectTaskStatus;
	private WfTask wfTask;
	private WfTaskType wfTaskType;
	private Boolean isProcessed;
	private Boolean isRouted;
	private Boolean isLocked = new Boolean(false);

	private Date routeTime;

	public WfProjectTask()
	{
	}

	public Long getRecid()
	{
		return this.recid;
	}

	public void setRecid(Long recid)
	{
		this.recid = recid;
	}

	public java.util.Date getCreationTime()
	{
		return this.creationTime;
	}

	public void setCreationTime(java.util.Date creationTime)
	{
		this.creationTime = creationTime;
	}

	public Date getEndTime()
	{
		return this.endTime;
	}

	public void setEndTime(Date endTime)
	{
		this.endTime = endTime;
	}

	public Long getGroupId()
	{
		return this.groupId;
	}

	public void setGroupId(Long groupId)
	{
		this.groupId = groupId;
	}

	public Date getStartTime()
	{
		return this.startTime;
	}

	public void setStartTime(Date startTime)
	{
		this.startTime = startTime;
	}

	public Long getPriority()
	{
		return this.priority;
	}

	public void setPriority(Long priority)
	{
		this.priority = priority;
	}

	public Long getUserId()
	{
		return this.userId;
	}

	public void setUserId(Long userId)
	{
		this.userId = userId;
	}

	// bi-directional many-to-one association to WfPlanTask
	public WfPlanTask getWfPlanTask()
	{
		return this.wfPlanTask;
	}

	public void setWfPlanTask(WfPlanTask wfPlanTask)
	{
		this.wfPlanTask = wfPlanTask;
	}

	// bi-directional many-to-one association to WfProject
	public WfProject getWfProject()
	{
		return this.wfProject;
	}

	public void setWfProject(WfProject wfProject)
	{
		this.wfProject = wfProject;
	}

	// bi-directional many-to-one association to WfProjectTaskStatus
	public WfProjectTaskStatus getWfProjectTaskStatus()
	{
		return this.wfProjectTaskStatus;
	}

	public void setWfProjectTaskStatus(WfProjectTaskStatus wfProjectTaskStatus)
	{
		this.wfProjectTaskStatus = wfProjectTaskStatus;
	}

	// bi-directional many-to-one association to WfTask
	public WfTask getWfTask()
	{
		return this.wfTask;
	}

	public void setWfTask(WfTask wfTask)
	{
		this.wfTask = wfTask;
	}

	// bi-directional many-to-one association to WfTaskType
	public WfTaskType getWfTaskType()
	{
		return this.wfTaskType;
	}

	public void setWfTaskType(WfTaskType wfTaskType)
	{
		this.wfTaskType = wfTaskType;
	}

	public Boolean getIsProcessed()
	{
		return this.isProcessed;
	}

	public void setIsProcessed(Boolean isProcessed)
	{
		this.isProcessed = isProcessed;
	}

	public void setIsRouted(Boolean isRouted)
	{
		this.isRouted = isRouted;
	}

	public Boolean getIsRouted()
	{
		return this.isRouted;
	}

	public void setRouteTime(Date routeTime)
	{
		this.routeTime = routeTime;
	}

	public Date getRouteTime()
	{
		return this.routeTime;
	}

	public Boolean getIsLocked()
	{
		return this.isLocked;
	}

	public void setIsLocked(Boolean isLocked)
	{
		this.isLocked = isLocked;
	}

	// public static void main(String[] args)
	// {
	// System.out.println("Starting Test update The Project Table.....");
	// SessionFactory se_factory = new
	// Configuration().configure().buildSessionFactory();
	// Session session = se_factory.openSession();
	//
	// WfProjectTask ss = new WfProjectTask();
	//
	// ss.setRecid(101L);
	// ss.setPriority(108L);
	// ss.setIsProcessed(true);
	//
	// session.save(ss);
	// session.beginTransaction().commit();
	// System.out.println("Close the table.....");
	// session.close();
	// // Criteria critera = session.createCriteria(WfProjectTask.class) ;
	// }

}